# Create your views here.
from django.contrib.auth import logout
from django.views import View

from server.utils import Response


class LogoutView(View):
    """ Secure logout of user login information """

    def get(self, request):
        logout(request)
        return Response.Json(msg="Safe logout")

    def post(self, request):
        return self.get(request)
